#include<stdio.h>
int main()
{
	int x = 0; int n = 0; int arr[100] = { 0 };
	scanf_s("%d", &x);
	while (scanf_s("%d", &n) != EOF)
	{
		int i = 0; 
		for (i = 0; i < n; i++)
		{
			scanf_s("%d", &arr[i]);
		}
		for (i = 0; i < n; i++)
		{
			if (arr[i] == x)
			{
				printf("%d\n", i); break;
			}
		}
		if (i == n)
		{
			printf("Not Found\n");
		}
	}
	return 0;
}